package com.wuliang.generate.common.core.properties;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.autoconfigure.jdbc.DataSourceProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

/**
 * @author WuLiang
 */
@Getter
@Setter
@Primary
@Component
@ConfigurationProperties(prefix = "spring.datasource")
public class DataSourceConfigProperties {

    private DataSourceProperties author;

    private DataSourceProperties datasource;

    private DataSourceProperties system;

    private String enableWhich = "system";

}
